<script lang="ts" setup>

const onSearch = (key: string) => {
  console.log(key)
  uni.$u.route({
    url: '/pages/search/search',
    params: {
      key
    }
  })
}
</script>

<template>
  <view class="shop-search">
    <u-search :animation="true" :height="64" :show-action="true" actionText="搜索" @search="onSearch"></u-search>
  </view>
</template>

<style lang="scss" scoped>
.shop-search {
  padding: 12px;

}
</style>